/*
Copyright 2022 The Numaproj Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Code generated by Openapi Generator. DO NOT EDIT.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetJetStreamStatefulSetSpecReq {
    #[serde(rename = "ClientPort")]
    pub client_port: i32,
    #[serde(rename = "ClusterPort")]
    pub cluster_port: i32,
    #[serde(rename = "ConfigMapName")]
    pub config_map_name: String,
    #[serde(rename = "ConfigReloaderImage")]
    pub config_reloader_image: String,
    #[serde(rename = "DefaultResources")]
    pub default_resources: k8s_openapi::api::core::v1::ResourceRequirements,
    #[serde(rename = "Labels")]
    pub labels: ::std::collections::HashMap<String, String>,
    #[serde(rename = "MetricsExporterImage")]
    pub metrics_exporter_image: String,
    #[serde(rename = "MetricsPort")]
    pub metrics_port: i32,
    #[serde(rename = "MonitorPort")]
    pub monitor_port: i32,
    #[serde(rename = "NatsImage")]
    pub nats_image: String,
    #[serde(rename = "PvcNameIfNeeded")]
    pub pvc_name_if_needed: String,
    #[serde(rename = "ServerAuthSecretName")]
    pub server_auth_secret_name: String,
    #[serde(rename = "ServerEncryptionSecretName")]
    pub server_encryption_secret_name: String,
    #[serde(rename = "ServiceName")]
    pub service_name: String,
    #[serde(rename = "StartCommand")]
    pub start_command: String,
}

impl GetJetStreamStatefulSetSpecReq {
    pub fn new(
        client_port: i32,
        cluster_port: i32,
        config_map_name: String,
        config_reloader_image: String,
        default_resources: k8s_openapi::api::core::v1::ResourceRequirements,
        labels: ::std::collections::HashMap<String, String>,
        metrics_exporter_image: String,
        metrics_port: i32,
        monitor_port: i32,
        nats_image: String,
        pvc_name_if_needed: String,
        server_auth_secret_name: String,
        server_encryption_secret_name: String,
        service_name: String,
        start_command: String,
    ) -> GetJetStreamStatefulSetSpecReq {
        GetJetStreamStatefulSetSpecReq {
            client_port,
            cluster_port,
            config_map_name,
            config_reloader_image,
            default_resources,
            labels,
            metrics_exporter_image,
            metrics_port,
            monitor_port,
            nats_image,
            pvc_name_if_needed,
            server_auth_secret_name,
            server_encryption_secret_name,
            service_name,
            start_command,
        }
    }
}
